#include "mydialog.h"
#include "ui_mydialog.h"

MyDialog::MyDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::MyDialog)
{
    ui->setupUi(this);
//    ui->buttonBox->setWindowTitle("haha");
}

MyDialog::~MyDialog()
{
    delete ui;
}

void MyDialog::setFromThreadId(void *p)
{
    m_threadid = p;
}

void MyDialog::on_buttonBox_accepted()
{
    emit transThreadid(m_threadid);
    accept();
}

void MyDialog::on_buttonBox_rejected()
{
    emit transThreadid(m_threadid);
    reject();
}
